package com.ydkj.a37e_mall.Classes.Model.Response;


import com.ydkj.a37e_mall.Classes.Model.Base.BaseReq;

import java.io.Serializable;
import java.util.List;

/**
 * Created by hong on 2016/3/23.
 */
public class TypeSelectResp extends BaseReq implements Serializable {


    /**
     * errno : 000
     * errmsg :
     * result : {"data":[{"type":"颜色","is_selected":1,"detail":[{"id":"30","name":"白色","format_id":"1","price":"100.00","integral_price":"","type":"颜色","product_id":"16","is_selected":1},{"id":"31","name":"天空灰","format_id":"2","price":"0.00","integral_price":"","type":"颜色","product_id":"16","is_selected":1},{"id":"32","name":"金色","format_id":"7","price":"200.00","integral_price":"","type":"颜色","product_id":"16","is_selected":1}]},{"type":"内存","is_selected":1,"detail":[{"id":"33","name":"16G","format_id":"4","price":"0.00","integral_price":"","type":"内存","product_id":"16","is_selected":1},{"id":"34","name":"128G","format_id":"6","price":"200.00","integral_price":"","type":"内存","product_id":"16","is_selected":1}]}],"total_page":"","current_page":"","total":"","access_token":""}
     */

    private String errno;
    private String errmsg;
    private ResultEntity result;

    public String getErrno() {
        return errno;
    }

    public void setErrno(String errno) {
        this.errno = errno;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public ResultEntity getResult() {
        return result;
    }

    public void setResult(ResultEntity result) {
        this.result = result;
    }

    public static class ResultEntity {
        /**
         * data : [{"type":"颜色","is_selected":1,"detail":[{"id":"30","name":"白色","format_id":"1","price":"100.00","integral_price":"","type":"颜色","product_id":"16","is_selected":1},{"id":"31","name":"天空灰","format_id":"2","price":"0.00","integral_price":"","type":"颜色","product_id":"16","is_selected":1},{"id":"32","name":"金色","format_id":"7","price":"200.00","integral_price":"","type":"颜色","product_id":"16","is_selected":1}]},{"type":"内存","is_selected":1,"detail":[{"id":"33","name":"16G","format_id":"4","price":"0.00","integral_price":"","type":"内存","product_id":"16","is_selected":1},{"id":"34","name":"128G","format_id":"6","price":"200.00","integral_price":"","type":"内存","product_id":"16","is_selected":1}]}]
         * total_page :
         * current_page :
         * total :
         * access_token :
         */

        private String total_page;
        private String current_page;
        private String total;
        private String access_token;
        private List<DataEntity> data;

        public String getTotal_page() {
            return total_page;
        }

        public void setTotal_page(String total_page) {
            this.total_page = total_page;
        }

        public String getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(String current_page) {
            this.current_page = current_page;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public List<DataEntity> getData() {
            return data;
        }

        public void setData(List<DataEntity> data) {
            this.data = data;
        }

        public static class DataEntity {
            /**
             * type : 颜色
             * is_selected : 1
             * detail : [{"id":"30","name":"白色","format_id":"1","price":"100.00","integral_price":"","type":"颜色","product_id":"16","is_selected":1},{"id":"31","name":"天空灰","format_id":"2","price":"0.00","integral_price":"","type":"颜色","product_id":"16","is_selected":1},{"id":"32","name":"金色","format_id":"7","price":"200.00","integral_price":"","type":"颜色","product_id":"16","is_selected":1}]
             */

            private String type;
            private int is_selected;
            private List<DetailEntity> detail;

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public int getIs_selected() {
                return is_selected;
            }

            public void setIs_selected(int is_selected) {
                this.is_selected = is_selected;
            }

            public List<DetailEntity> getDetail() {
                return detail;
            }

            public void setDetail(List<DetailEntity> detail) {
                this.detail = detail;
            }

            public static class DetailEntity {
                /**
                 * id : 30
                 * name : 白色
                 * format_id : 1
                 * price : 100.00
                 * integral_price :
                 * type : 颜色
                 * product_id : 16
                 * is_selected : 1
                 */

                private String id;
                private String name;
                private String format_id;
                private String price;
                private String integral_price;
                private String type;
                private String product_id;
                private int is_selected;
                private int is_change;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getFormat_id() {
                    return format_id;
                }

                public void setFormat_id(String format_id) {
                    this.format_id = format_id;
                }

                public String getPrice() {
                    return price;
                }

                public void setPrice(String price) {
                    this.price = price;
                }

                public String getIntegral_price() {
                    return integral_price;
                }

                public void setIntegral_price(String integral_price) {
                    this.integral_price = integral_price;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getProduct_id() {
                    return product_id;
                }

                public void setProduct_id(String product_id) {
                    this.product_id = product_id;
                }

                public int getIs_selected() {
                    return is_selected;
                }

                public void setIs_selected(int is_selected) {
                    this.is_selected = is_selected;
                }

                public int getIs_change() {
                    return is_change;
                }

                public void setIs_change(int is_change) {
                    this.is_change = is_change;
                }
            }
        }
    }
}
